package book.serviceImpl;

import java.util.List;
import book.dao.borrowDAO;
import book.dto.borrow;

import org.springframework.transaction.annotation.Transactional;

import book.service.borrowService;
@Transactional
public class borrowServiceImpl implements borrowService {
	
	private borrowDAO borrowDAO;

	public borrowDAO getBorrowDAO() {
		return borrowDAO;
	}

	public void setBorrowDAO(borrowDAO borrowDAO) {
		this.borrowDAO = borrowDAO;
	}

	public List query(String snumber) {
		return borrowDAO.query(snumber);
	}

	public void add(borrow borrow) {
		borrowDAO.add(borrow);
	}

	public void delete(String isbn) {
		borrowDAO.delete(isbn);
	}

}
